<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="./board_mybatis/board.js"></script>
</head>
<body>

<%
String part = null;

if(request.getParameter("part") != null){
	part = request.getParameter("part");
	session.setAttribute("part", part);
}else{
	// TOP에서 게시판을 눌렀을 경우 '공지사항'으로 가게한다.
	if(session.getAttribute("part") == null){
		part = "notice";
		session.setAttribute("part", part);
	}else{
		part = (String)session.getAttribute("part");
	}
}
%>
<h3>Mybatis 게시판</h3>
<br/>
	<li><a href="#" onclick="goBoard('notice')">공지사항</a>
	<li><a href="#" onclick="goBoard('qna')">QnA</a>
	<li><a href="#" onclick="goBoard('board')">게시판</a>

</body>
</html>